# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=sassc
pkgver=3.6.2
pkgrel=0
pkgdesc="Libsass command line driver"
url="https://github.com/sass/sassc"
arch="all"
license="MIT"
makedepends="libsass-dev autoconf automake libtool"
source="$pkgname-$pkgver.tar.gz::https://github.com/sass/sassc/archive/$pkgver.tar.gz"

prepare() {
	default_prepare

	cat <<- __EOF__ > version.sh
		echo $pkgver
	__EOF__

	autoreconf -vif
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static
	make
}

check() {
	./sassc --help > /dev/null
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
fff3995ce8608bdaed5f4f1352ae4f1f882de58663b932c598d6168df421e4dbf907ec0f8caebb1e56490a71ca11105726f291b475816dd53e705bc53121969f  sassc-3.6.2.tar.gz
"
